﻿<%@ Page Title="" Language="C#" MasterPageFile="~/manager.Master" AutoEventWireup="true" CodeBehind="Search_emp.aspx.cs" Inherits="Bus_proj.website.Search_emp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="../Styles/Stylebuttoncss.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/textbox.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
        }
        .style3
        {
            width: 164px;
        }
        .style4
        {
            width: 57px;
        }
        .style5
        {
            width: 196px;
        }
        .style6
        {
            height: 41px;
        }
        .style7
        {
            width: 164px;
            height: 41px;
        }
        .style8
        {
            width: 57px;
            height: 41px;
        }
        .style9
        {
            width: 196px;
            height: 41px;
        }
        .style10
        {
            width: 102px;
        }
        .style11
        {
            height: 41px;
            width: 102px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<fieldset class="el02">
<legend>ตรวจสอบข้อมูลพนักงาน</legend>
    <table class="style1">
        <tr>
            <td align="right" class="style10">
                &nbsp;</td>
            <td class="style3">
                &nbsp;</td>
            <td align="right" class="style4">
                &nbsp;</td>
            <td class="style5">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right" class="style11">
                <asp:Label ID="Label1" runat="server" Text="ค้นหาชื่อ"></asp:Label>
            </td>
            <td class="style7">
                <asp:TextBox ID="TextBox1" runat="server" Height="21px" Width="137px" 
                    CssClass="textbox"></asp:TextBox>
            </td>
            <td align="right" class="style8">
                <asp:Label ID="Label2" runat="server" Text="นามสกุล"></asp:Label>
            </td>
            <td class="style9">
                <asp:TextBox ID="TextBox2" runat="server" Height="22px" Width="158px" 
                    CssClass="textbox"></asp:TextBox>
            </td>
            <td class="style6">
                <asp:Button ID="Button1" runat="server" Height="37px" onclick="Button1_Click" 
                    Text="ค้นหา" Width="104px" CssClass="classname" />
                <asp:Button ID="Button2" runat="server" Height="37px" Text="ค้นหาทั้งหมด" 
                    Width="144px" onclick="Button2_Click" CssClass="classname" />
            </td>
        </tr>
        <tr>
            <td align="right" class="style10">
                &nbsp;</td>
            <td class="style3">
                &nbsp;</td>
            <td align="right" class="style4">
                &nbsp;</td>
            <td class="style5">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="center" class="style2" colspan="5">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" 
                    CellPadding="4" Font-Size="Medium" ForeColor="Black" GridLines="Vertical" 
                    Width="583px" onrowcommand="GridView1_RowCommand">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="Personnel_name" HeaderText="ชื่อพนักงาน" />
                        <asp:BoundField DataField="Personnel_surname" HeaderText="นามสกุล" />
                        <asp:BoundField DataField="Positions_name" HeaderText="ตำแหน่งพนักงาน" />
                        <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LinkButton1" CommandName="cmdY" CommandArgument='<%#Eval("Personnel_id") %>' runat="server">Detail</asp:LinkButton>
                                    </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#CCCC99" />
                    <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                    <RowStyle BackColor="#F7F7DE" />
                    <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#FBFBF2" />
                    <SortedAscendingHeaderStyle BackColor="#848384" />
                    <SortedDescendingCellStyle BackColor="#EAEAD3" />
                    <SortedDescendingHeaderStyle BackColor="#575357" />
                </asp:GridView>
            </td>
        </tr>
    </table>
</fieldset>
</asp:Content>

